<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            height: 500px;
            width: 200px;
            background: red;
            overflow:scroll;
        }
        .innerbox{
            width: 100%;
            height: 1000px;
        }

    </style>
</head>
<body>
    <div id="app">
        <!-- passive 和 prevent 修饰不能一起使用 -->
        <div class="box" @scroll.passive.stop="handleScroll">
            <div class="innerbox">

            </div>
        </div>
    </div>
</body>
<script src="https://cn.vuejs.org/js/vue.js"></script>
<script>
    let vm = new Vue({
        el:"#app",
        methods:{
            handleScroll:function(){
                console.log("盒子滚动啦");
            }
        },
    })
</script>
</html>